package android.support.v4.media;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public final class RatingCompat implements Parcelable {
    public static final Creator<RatingCompat> CREATOR = new Creator<RatingCompat>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˋ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˋ(i);
        }

        public RatingCompat ˋ(Parcel parcel) {
            return new RatingCompat(parcel.readInt(), parcel.readFloat());
        }

        public RatingCompat[] ˋ(int i) {
            return new RatingCompat[i];
        }
    };
    private final int ˏ;
    private final float ॱ;

    @RestrictTo({d.ˊ})
    @Retention(RetentionPolicy.SOURCE)
    public @interface StarStyle {
    }

    @RestrictTo({d.ˊ})
    @Retention(RetentionPolicy.SOURCE)
    public @interface Style {
    }

    RatingCompat(int i, float f) {
        this.ˏ = i;
        this.ॱ = f;
    }

    public String toString() {
        String str;
        StringBuilder append = new StringBuilder().append("Rating:style=").append(this.ˏ).append(" rating=");
        if (this.ॱ < 0.0f) {
            str = "unrated";
        } else {
            str = String.valueOf(this.ॱ);
        }
        return append.append(str).toString();
    }

    public int describeContents() {
        return this.ˏ;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.ˏ);
        parcel.writeFloat(this.ॱ);
    }
}
